﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;


namespace ExpenseSystem.Model
{
    [TableName("SAM_DELIVERYDETAIL")]

    public class DeliveryDetailModel:NormalModel
    {
        private long _deliveryid;
        private long _orderdetailid;
        private long _productionid;
        private bool _suite;
        private long _suiteid;
        private decimal _suiteqty;
        private decimal _quantity1;
        private decimal _quantity2;
        private long _unitgroup;
        private long _unitid;
        private long _salesunitid;
        private long _orderid;
        private long _customerid;
        public virtual long CustomerId
        {
            get { return _customerid; }
            set
            {
                if (_customerid == value)
                    return;
                _customerid = value;
                if (!PropertyUpdated.Contains("CustomerId"))
                    PropertyUpdated.Add("CustomerId");
            }
        }

        public virtual long OrderId
        {
            get { return _orderid; }
            set
            {
                if (_orderid == value)
                    return;
                _orderid = value;
                if (!PropertyUpdated.Contains("OrderId"))
                    PropertyUpdated.Add("OrderId");
            }
        }
        public virtual long DeliveryId
        {
            get { return _deliveryid; }
            set
            {
                if (_deliveryid == value)
                    return;
                _deliveryid = value;
                if (!PropertyUpdated.Contains("DeliveryId"))
                    PropertyUpdated.Add("DeliveryId");
            }
        }
        public virtual long OrderDetailId
        {
            get { return _orderdetailid; }
            set
            {
                if (_orderdetailid == value)
                    return;
                _orderdetailid = value;
                if (!PropertyUpdated.Contains("OrderDetailId"))
                    PropertyUpdated.Add("OrderDetailId");
            }
        }
        public virtual long ProductionId
        {
            get { return _productionid; }
            set
            {
                if (_productionid == value)
                    return;
                _productionid = value;
                if (!PropertyUpdated.Contains("ProductionId"))
                    PropertyUpdated.Add("ProductionId");
            }
        }
        public virtual long SuiteId
        {
            get { return _suiteid; }
            set
            {
                if (_suiteid == value)
                    return;
                _suiteid = value;
                if (!PropertyUpdated.Contains("SuiteId"))
                    PropertyUpdated.Add("SuiteId");
            }
        }
        public virtual bool Suite
        {
            get { return _suite; }
            set
            {
                if (_suite == value)
                    return;
                _suite = value;
                if (!PropertyUpdated.Contains("Suite"))
                    PropertyUpdated.Add("Suite");
            }
        }
        public virtual decimal SuiteQty
        {
            get { return _suiteqty; }
            set
            {
                if (_suiteqty == value)
                    return;
                _suiteqty = value;
                if (!PropertyUpdated.Contains("SuiteQty"))
                    PropertyUpdated.Add("SuiteQty");
            }
        }
        public virtual decimal Quantity1
        {
            get { return _quantity1; }
            set
            {
                if (_quantity1 == value)
                    return;
                _quantity1 = value;
                if (!PropertyUpdated.Contains("Quantity1"))
                    PropertyUpdated.Add("Quantity1");
            }
        }
        public virtual decimal Quantity2
        {
            get { return _quantity2; }
            set
            {
                if (_quantity2 == value)
                    return;
                _quantity2 = value;
                if (!PropertyUpdated.Contains("Quantity2"))
                    PropertyUpdated.Add("Quantity2");
            }
        }
        public virtual long UnitGroup
        {
            get { return _unitgroup; }
            set
            {
                if (_unitgroup == value)
                    return;
                _unitgroup = value;
                if (!PropertyUpdated.Contains("UnitGroup"))
                    PropertyUpdated.Add("UnitGroup");
            }
        }
        public virtual long UnitId
        {
            get { return _unitid; }
            set
            {
                if (_unitid == value)
                    return;
                _unitid = value;
                if (!PropertyUpdated.Contains("UnitId"))
                    PropertyUpdated.Add("UnitId");
            }
        }
        public virtual long SalesUnitId
        {
            get { return _salesunitid; }
            set
            {
                if (_salesunitid == value)
                    return;
                _salesunitid = value;
                if (!PropertyUpdated.Contains("SalesUnitId"))
                    PropertyUpdated.Add("SalesUnitId");
            }
        }
    }
}
